﻿@model TestUp.Models.UserModels.OpenTestModel

@using (Html.BeginForm("SubmitTest", "User"))
{
    @Html.HiddenFor(x => x.PendingTest.TestId)
    @Html.HiddenFor(x => x.PendingTest.PendingTestId)
    <div id="questionsArea">
        @for (int i = 0; i < Model.TestData.CheckTestQuestions.Count; i++)
        {
            @Html.EditorFor(model => model.TestData.CheckTestQuestions[i], "CheckTest");
        }
        @for (int i = 0; i < Model.TestData.RadioTestQuestions.Count; i++)
        {
            @Html.EditorFor(model => model.TestData.RadioTestQuestions[i], "RadioTest");
        }
        @for (int i = 0; i < Model.TestData.InputTestQuestions.Count; i++)
        {
            @Html.EditorFor(model => model.TestData.InputTestQuestions[i], "InputTest");
        }
        @for (int i = 0; i < Model.TestData.MatchTestQuestions.Count; i++)
        {
            @Html.EditorFor(model => model.TestData.MatchTestQuestions[i], "MatchTest");
        }
        @for (int i = 0; i < Model.TestData.FillTestQuestions.Count; i++)
        {
            @Html.EditorFor(model => model.TestData.FillTestQuestions[i], "FillTest");
        }
        <input type="submit" id="submitTest" value="Done!" />
    </div>
}
